<?php


namespace App\Http\Controllers\Api;


use App\Lib\Uploads\UploadHandler;
use Illuminate\Http\Request;

class UploadsController extends BaseController
{

    public function putFile(Request $request)
    {
        $file = $request->file('file');
        $path = UploadHandler::handle($file);
        return $this->success($path['url']);
    }
}
